//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;
using OpenLS.Vml.Serialization;

namespace OpenLS.Vml.Drawing
{
    public class IdMap: IOfficeXmlSerializable
    {
        #region IOfficeXmlSerializable Members
        internal const string xmlName = "idmap";
        void IOfficeXmlSerializable.ReadXml(ReadContext context)
        {
            using (var c = context.Read(xmlName))
            {
                Ext = c.GetOptionalEnum<Ext>(VmlConstants.VmlNamespace + "ext");
                Data = c.GetOptionalString("data");
            }
        }

        void IOfficeXmlSerializable.WriteXml(WriteContext context)
        {
            using (WriteContext c = context.Write(xmlName))
            {
                c.SetOptionalEnum(VmlConstants.VmlNamespace + "ext", Ext);
                c.SetOptionalString("data", Data);
            }
        }

        #endregion

        private Ext? _ext;

        public Ext? Ext
        {
            get { return _ext; }
            set { _ext = value; }
        }
        private string _data;

        public string Data
        {
            get { return _data; }
            set { _data = value; }
        }
	
	
    }
}